﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using BI.CF.BLL;
using BI.CF.Model;
using BI.CF.PageList;
namespace BackStage.Hand
{
    /// <summary>
    /// PRDetails_Show 的摘要说明
    /// </summary>
    public class PRDetails_Show : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            //接收数据
            int pageindex = Convert.ToInt32(context.Request["pageindex"]);
            int pagesize = Convert.ToInt32(context.Request["pagesize"]);
            string  startime = context.Request["startime"].ToString();
            string endtime = context.Request["endtime"].ToString();
            PRDetailsBLL bll = new PRDetailsBLL();
            Pager<PRDetailsModel> list= bll.PRDetails_Show(pageindex, pagesize, startime, endtime);
            string str = JsonHelper.JsonSerializer<Pager<PRDetailsModel>>(list);
            context.Response.Write(str);
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}